//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.tool.custom.viewpager;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

public class CViewPager extends ViewPager {
    private boolean isCanScroll = false;

    public CViewPager(Context context) {
        super(context);
    }

    public CViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public void setScanScroll(boolean isCanScroll) {
        this.isCanScroll = isCanScroll;
    }

    public void scrollTo(int x, int y) {
        super.scrollTo(x, y);
    }

    public boolean onTouchEvent(MotionEvent arg0) {
        return this.isCanScroll?super.onTouchEvent(arg0):false;
    }

    public void setCurrentItem(int item, boolean smoothScroll) {
        super.setCurrentItem(item, smoothScroll);
    }

    public void setCurrentItem(int item) {
        super.setCurrentItem(item);
    }

    public boolean onInterceptTouchEvent(MotionEvent arg0) {
        return this.isCanScroll?super.onInterceptTouchEvent(arg0):false;
    }
}
